{% extends 'trp/base.html'%}
{% block content %}
<!-- 素材管理——管理员 -->
<div class="pageheader">
	<div class="searchbox pull-right">
        <label>搜索<input id="term" class="searchbox-ipt" placeholder="按ID、名称和上传者模糊搜索" type="text"></label>
        <a class="searchbox-btn" href="javascript:;"></a>
    </div>
	<div class="dropbox pull-right">
	    <select name="status" style="width:150px;" placeholder="按审核状态搜索">
			<option></option>
			<option value="">全部状态</option>
			<option value="0">待审核</option>
			<option value="1">通过</option>
			<option value="2">拒绝</option>
		</select>
    </div>
    <div class="dropbox pull-right">
	    <input type="text" name="type" style="width:150px;" placeholder="按类型搜索" />
    </div>
    <div class="dropbox pull-right">
	    <input type="text" name="measure" style="width:150px;" placeholder="按尺寸搜索" />
    </div>
</div>
<div class="pagebox">
	<table id="materialList" class="grid" width="100%">
	    <thead>
	        <tr>
	        	<th style="width:80px;">素材ID</th>
				<th minwidth="100">素材名称</th>
				<th minwidth="100">上传者</th>
                <th minwidth="150">上传时间</th>
                <th style="width:80px;">宽</th>
                <th style="width:80px;">高</th>
                <th style="width:80px;">格式</th>
                <th style="width:100px;">素材大小</th>
                <th minwidth="100">跳转地址</th>
                <th style="width:80px;">频次控制</th>
                <th style="width:120px;">审核状态</th>
	            <th minwidth="150">操作</th>
	        </tr>
	    </thead>
	    <tbody>
	    	<tr><td colspan="12" class="loading">&nbsp;</td></tr>
	    </tbody>
	</table>
</div>
<div class=" pop-form form-group pop-preview" style="display:none;">
	<form class="mediaForm">
		<div class="form_item" style="height:auto;">
			<label class="form_label">素材预览：</label>
			<div class="form_ctrl material_pic"></div>
		</div>
		<div class="form_item">
			<label class="form_label">跳转地址：</label>
			<div class="form_ctrl material_landingpage"></div>
		</div>
	</form>
</div>
<div class=" pop-form form-group pop-refuse" style="display:none;">
	<form class="refuseForm">
		<div class="form_item hasunit" style="height:auto">
			<label class="form_label">拒绝原因：</label>
			<div class="form_ctrl">
				<textarea type="text" name="reason" class="form-control required" placeholder="请填写原因..." style="float:left;width:250px;height:100px;"></textarea>
			</div>
		</div>
	</form>
</div>
<script>seajs.use('trp/js/material_admin');</script>
{% endblock %}